package com.chance.cc.crawler.development.command.publish.cnbeverage;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.cnbeverage.CnbeverageCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.cnbeverage.CnbeverageCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.cnbeverage.CnbeverageScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/17 17:28
 * @Description
 *      饮料行业网
 **/
public class CnbeveragePublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = CnbeverageCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        CnbeverageScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        CnbeverageCrawlerScript.publishCrawlerNodeScript();

    }
}
